package com.module.base.ext

import com.module.base.bus.ActivityResultBus
import kotlinx.coroutines.flow.MutableSharedFlow

/**
 *  双重校验锁式-单例   Activity回调触发， 特殊情况才使用
 */
val activityResultFlow: MutableSharedFlow<ActivityResultBus> by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
    MutableSharedFlow()
}

/**
 *  双重校验锁式-单例   recycledView滚动状态
 */
val recycledViewScrollStateFlow: MutableSharedFlow<Int> by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
    MutableSharedFlow()
}
